import 'package:flutter/material.dart';

void main() => runApp(tarbat());



class tarbat extends StatefulWidget {
  @override
  tarbatImp createState() => tarbatImp();
}


class tarbatImp extends State<tarbat> {

  @override
  Widget build(BuildContext context) {
    return
      new MaterialApp(
        home: new DefaultTabController(
          length: 3,
          child: new Scaffold(
            appBar: new AppBar(
              title: const Text('Tabbed AppBar'),
            ),
            body:
            Wrap(
              spacing: 25, // 水平方向间距
              runSpacing: 10, //垂直方向间距
              alignment: WrapAlignment.center,  // 中间对齐
              children: <Widget>[
                Container(
                  width: 550,
                  height: 100,
                  color: Colors.red,
                ),
                Container(
                  width: 350,
                  height: 100,
                  color: Colors.blue,
                ),
                Container(
                  width: 450,
                  height: 100,
                  color: Colors.yellow,
                ),
              ],
            ),

          ),
        ),
      );

}
}



